<template>
  <div class="new">
    <new-title :title="title"></new-title>
    <div class="new_list">
      <div class="news" v-for="(item, index) in newarr" :key="index">
        <img :src="item.list_pic_url" alt />
        <p class="name">{{item.name}}</p>
        <p class="price">
          <span>￥</span>
          <span>{{item.retail_price}}</span>
          <span>元</span>
        </p>
      </div>
    </div>
  </div>
</template>

<script>
import NewTitle from "@/components/home/NewTItle.vue";
export default {
  props: ["newarr","title"],

  components: {
    NewTitle
  }
};
</script>

<style lang="less" scoped>
.new {
  .new_list {
    display: flex;
    width: 100%;
    // height:100%;
    justify-content: space-between;
    flex-wrap: wrap;
    .news {
      width: 50%;
      height: 100%;
      background-color: #fff;
      text-align: center;
      img {
        width: 100%;
        height: 100%;
      }
      .price {
        color: darkred;
        text-align: center;
        line-height: 30px;
      }
    }
  }
}
</style>